package com.azxc.rapid.plus.dict.feign;

import com.azxc.rapid.core.tool.api.R;
import com.azxc.rapid.system.entity.Dict;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author linym
 * @className: IDictPlusClient
 * @description:
 * @date 2022/8/23 15:19
 * @version：1.0
 */
@FeignClient(
	value = "rapid-core-plus",
	fallback = IDictPlusClientFallback.class
)
public interface IDictPlusClient {

	String API_PREFIX = "/client-plus";
	String GET_DICT_LIST_BY_CODE_OR_NAME = API_PREFIX + "/dict/getDictListByCodeOrName";

	@GetMapping(GET_DICT_LIST_BY_CODE_OR_NAME)
	R<List<Dict>> getDictListByCodeOrName(@RequestParam(required = false,value = "code")String code, @RequestParam(required = false,value = "searchName")String searchName);
}
